export interface loginState {
  token: string
  userInfo: any
  userMenu: any
}
export interface Role {
  id: number
  name: string
  intre: string
  create_time: Date
  update_time: Date
}

export interface Department {
  id: number
  name: string
  parentId?: string
  create_time?: Date
  update_time?: Date
  leader: string
}

export interface userInfo {
  id: number
  name: string
  realname: string
  mobile: string
  enable: number
  create_time: Date
  update_time: Date
  role: Role
  department: Department
}
export interface IdataType<T = any> {
  code: number
  data: T
}
